package com.anycl.customer.dao;

import com.anycl.customer.entity.Customer;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface CustomerRepository extends MongoRepository<Customer, String> {
    Customer findByIdAndStatus(String id, Integer status);
    List<Customer> findAllByStatus(Integer status);
}
